package com.apartmentManage.dao;

import com.apartmentManage.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomDao {

    /*减少*/
    int reduceRoom(@Param("roomno") Integer roomno);

    /*添加*/
    int addRoom(@Param("roomno") Integer roomno);

    /*查询数量*/
    Integer getBednumber(@Param("roomno") Integer roomno);

    /*查询楼栋的所有房间*/
    List<Room> getByApartmentNo(@Param("apartmentNo") Integer apartmentNo);
}
